package com.eurobcoin.user;

import java.io.Serializable;
import java.util.Date;

import javax.servlet.http.HttpSessionBindingEvent;

public class User implements Serializable /*, HttpSessionBindingListener */ {

	private static final long serialVersionUID = 2815144638454958688L;
	
	private String userRol;
	
	private String sessionId;
	
	private Date creationDate;
	
	private String userName;

	public User() {
		this.creationDate = new Date();
	}
	
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserRol() {
		return userRol;
	}

	public void setUserRol(String userRol) {
		this.userRol = userRol;
	}
	
	public String getSessionId() {
		return sessionId;
	}

	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}
	
	public Date getCreationDate() {
		return creationDate;
	}

	public void valueBound(HttpSessionBindingEvent event) {
		
	}

//	public void valueUnbound(HttpSessionBindingEvent event) {
//		
//		HttpSession session = event.getSession();
//		HttpSessionHelper.notifySessionEnd(session);
//		
//	}
	
}
